<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Awesome-pyecharts</title>
            <script type="text/javascript" src="https://assets.pyecharts.org/assets/echarts.min.js"></script>
        <script type="text/javascript" src="https://assets.pyecharts.org/assets/jquery.min.js"></script>
        <script type="text/javascript" src="https://assets.pyecharts.org/assets/jquery-ui.min.js"></script>
        <script type="text/javascript" src="https://assets.pyecharts.org/assets/ResizeSensor.js"></script>

            <link rel="stylesheet"  href="https://assets.pyecharts.org/assets/jquery-ui.css">

</head>
<body>
    <style>.box {  }; </style>
        <button onclick="downloadCfg()">Save Config</button>
    <div class="box">
                <div id="6cb1439388c044599a731aab8fa0f000" class="chart-container" style="width:900px; height:500px;"></div>
    <script>
        var chart_6cb1439388c044599a731aab8fa0f000 = echarts.init(
            document.getElementById('6cb1439388c044599a731aab8fa0f000'), 'white', {renderer: 'canvas'});
        var option_6cb1439388c044599a731aab8fa0f000 = {
    "animation": true,
    "animationThreshold": 2000,
    "animationDuration": 1000,
    "animationEasing": "cubicOut",
    "animationDelay": 0,
    "animationDurationUpdate": 300,
    "animationEasingUpdate": "cubicOut",
    "animationDelayUpdate": 0,
    "color": [
        "#c23531",
        "#2f4554",
        "#61a0a8",
        "#d48265",
        "#749f83",
        "#ca8622",
        "#bda29a",
        "#6e7074",
        "#546570",
        "#c4ccd3",
        "#f05b72",
        "#ef5b9c",
        "#f47920",
        "#905a3d",
        "#fab27b",
        "#2a5caa",
        "#444693",
        "#726930",
        "#b2d235",
        "#6d8346",
        "#ac6767",
        "#1d953f",
        "#6950a1",
        "#918597"
    ],
    "series": [
        {
            "type": "line",
            "name": "\u4eba\u53e3\u51fa\u751f\u7387",
            "connectNulls": false,
            "symbolSize": 4,
            "showSymbol": true,
            "smooth": false,
            "step": false,
            "data": [
                [
                    1949,
                    36.0
                ],
                [
                    1950,
                    37.0
                ],
                [
                    1951,
                    37.8
                ],
                [
                    1952,
                    37.0
                ],
                [
                    1953,
                    37.0
                ],
                [
                    1954,
                    37.97
                ],
                [
                    1955,
                    32.6
                ],
                [
                    1956,
                    31.9
                ],
                [
                    1957,
                    34.03
                ],
                [
                    1958,
                    29.22
                ],
                [
                    1959,
                    24.78
                ],
                [
                    1960,
                    20.86
                ],
                [
                    1961,
                    18.13
                ],
                [
                    1962,
                    37.22
                ],
                [
                    1963,
                    43.6
                ],
                [
                    1964,
                    39.34
                ],
                [
                    1965,
                    38.0
                ],
                [
                    1966,
                    35.21
                ],
                [
                    1967,
                    34.12
                ],
                [
                    1968,
                    35.75
                ],
                [
                    1969,
                    34.25
                ],
                [
                    1970,
                    33.59
                ],
                [
                    1971,
                    30.74
                ],
                [
                    1972,
                    29.92
                ],
                [
                    1973,
                    28.07
                ],
                [
                    1974,
                    24.95
                ],
                [
                    1975,
                    23.13
                ],
                [
                    1976,
                    20.01
                ],
                [
                    1977,
                    19.03
                ],
                [
                    1978,
                    18.25
                ],
                [
                    1979,
                    17.82
                ],
                [
                    1980,
                    18.21
                ],
                [
                    1981,
                    20.91
                ],
                [
                    1982,
                    22.28
                ],
                [
                    1983,
                    20.19
                ],
                [
                    1984,
                    19.9
                ],
                [
                    1985,
                    21.04
                ],
                [
                    1986,
                    22.43
                ],
                [
                    1987,
                    23.33
                ],
                [
                    1988,
                    22.37
                ],
                [
                    1989,
                    21.58
                ],
                [
                    1990,
                    21.06
                ],
                [
                    1991,
                    19.68
                ],
                [
                    1992,
                    18.24
                ],
                [
                    1993,
                    18.09
                ],
                [
                    1994,
                    17.7
                ],
                [
                    1995,
                    17.12
                ],
                [
                    1996,
                    16.98
                ],
                [
                    1997,
                    16.57
                ],
                [
                    1998,
                    15.64
                ],
                [
                    1999,
                    14.64
                ],
                [
                    2000,
                    14.03
                ],
                [
                    2001,
                    13.38
                ],
                [
                    2002,
                    12.86
                ],
                [
                    2003,
                    12.41
                ],
                [
                    2004,
                    12.29
                ],
                [
                    2005,
                    12.4
                ],
                [
                    2006,
                    12.09
                ],
                [
                    2007,
                    12.1
                ],
                [
                    2008,
                    12.14
                ],
                [
                    2009,
                    11.95
                ],
                [
                    2010,
                    11.9
                ],
                [
                    2011,
                    11.93
                ],
                [
                    2012,
                    12.1
                ],
                [
                    2013,
                    12.08
                ],
                [
                    2014,
                    12.37
                ],
                [
                    2015,
                    12.07
                ],
                [
                    2016,
                    12.95
                ],
                [
                    2017,
                    12.43
                ],
                [
                    2018,
                    10.94
                ],
                [
                    2019,
                    10.48
                ]
            ],
            "hoverAnimation": true,
            "label": {
                "show": false,
                "position": "top",
                "margin": 8
            },
            "lineStyle": {
                "width": 1,
                "opacity": 1,
                "curveness": 0,
                "type": "solid"
            },
            "areaStyle": {
                "opacity": 0
            },
            "rippleEffect": {
                "show": true,
                "brushType": "stroke",
                "scale": 2.5,
                "period": 4
            }
        },
        {
            "type": "line",
            "name": "\u4eba\u53e3\u6b7b\u4ea1\u7387",
            "connectNulls": false,
            "symbolSize": 4,
            "showSymbol": true,
            "smooth": false,
            "step": false,
            "data": [
                [
                    1949,
                    20.0
                ],
                [
                    1950,
                    18.0
                ],
                [
                    1951,
                    17.8
                ],
                [
                    1952,
                    17.0
                ],
                [
                    1953,
                    14.0
                ],
                [
                    1954,
                    13.18
                ],
                [
                    1955,
                    12.28
                ],
                [
                    1956,
                    11.4
                ],
                [
                    1957,
                    10.8
                ],
                [
                    1958,
                    11.98
                ],
                [
                    1959,
                    14.59
                ],
                [
                    1960,
                    25.43
                ],
                [
                    1961,
                    14.33
                ],
                [
                    1962,
                    10.08
                ],
                [
                    1963,
                    10.1
                ],
                [
                    1964,
                    11.56
                ],
                [
                    1965,
                    9.5
                ],
                [
                    1966,
                    8.87
                ],
                [
                    1967,
                    8.47
                ],
                [
                    1968,
                    8.25
                ],
                [
                    1969,
                    8.06
                ],
                [
                    1970,
                    7.64
                ],
                [
                    1971,
                    7.34
                ],
                [
                    1972,
                    7.65
                ],
                [
                    1973,
                    7.08
                ],
                [
                    1974,
                    7.38
                ],
                [
                    1975,
                    7.36
                ],
                [
                    1976,
                    7.29
                ],
                [
                    1977,
                    6.91
                ],
                [
                    1978,
                    6.25
                ],
                [
                    1979,
                    6.21
                ],
                [
                    1980,
                    6.34
                ],
                [
                    1981,
                    6.36
                ],
                [
                    1982,
                    6.6
                ],
                [
                    1983,
                    6.9
                ],
                [
                    1984,
                    6.82
                ],
                [
                    1985,
                    6.78
                ],
                [
                    1986,
                    6.86
                ],
                [
                    1987,
                    6.72
                ],
                [
                    1988,
                    6.64
                ],
                [
                    1989,
                    6.54
                ],
                [
                    1990,
                    6.67
                ],
                [
                    1991,
                    6.7
                ],
                [
                    1992,
                    6.64
                ],
                [
                    1993,
                    6.64
                ],
                [
                    1994,
                    6.49
                ],
                [
                    1995,
                    6.57
                ],
                [
                    1996,
                    6.56
                ],
                [
                    1997,
                    6.51
                ],
                [
                    1998,
                    6.5
                ],
                [
                    1999,
                    6.46
                ],
                [
                    2000,
                    6.45
                ],
                [
                    2001,
                    6.43
                ],
                [
                    2002,
                    6.41
                ],
                [
                    2003,
                    6.4
                ],
                [
                    2004,
                    6.42
                ],
                [
                    2005,
                    6.51
                ],
                [
                    2006,
                    6.81
                ],
                [
                    2007,
                    6.93
                ],
                [
                    2008,
                    7.06
                ],
                [
                    2009,
                    7.08
                ],
                [
                    2010,
                    7.11
                ],
                [
                    2011,
                    7.14
                ],
                [
                    2012,
                    7.15
                ],
                [
                    2013,
                    7.16
                ],
                [
                    2014,
                    7.16
                ],
                [
                    2015,
                    7.11
                ],
                [
                    2016,
                    7.09
                ],
                [
                    2017,
                    7.11
                ],
                [
                    2018,
                    7.13
                ],
                [
                    2019,
                    7.14
                ]
            ],
            "hoverAnimation": true,
            "label": {
                "show": false,
                "position": "top",
                "margin": 8
            },
            "lineStyle": {
                "width": 1,
                "opacity": 1,
                "curveness": 0,
                "type": "solid"
            },
            "areaStyle": {
                "opacity": 0
            },
            "rippleEffect": {
                "show": true,
                "brushType": "stroke",
                "scale": 2.5,
                "period": 4
            }
        },
        {
            "type": "line",
            "name": "\u4eba\u53e3\u81ea\u7136\u589e\u957f\u7387",
            "connectNulls": false,
            "symbolSize": 4,
            "showSymbol": true,
            "smooth": false,
            "step": false,
            "data": [
                [
                    1949,
                    16.0
                ],
                [
                    1950,
                    19.0
                ],
                [
                    1951,
                    20.0
                ],
                [
                    1952,
                    20.0
                ],
                [
                    1953,
                    23.0
                ],
                [
                    1954,
                    24.79
                ],
                [
                    1955,
                    20.32
                ],
                [
                    1956,
                    20.5
                ],
                [
                    1957,
                    23.23
                ],
                [
                    1958,
                    17.24
                ],
                [
                    1959,
                    10.19
                ],
                [
                    1960,
                    -4.57
                ],
                [
                    1961,
                    3.8
                ],
                [
                    1962,
                    27.14
                ],
                [
                    1963,
                    33.5
                ],
                [
                    1964,
                    27.78
                ],
                [
                    1965,
                    28.5
                ],
                [
                    1966,
                    26.34
                ],
                [
                    1967,
                    25.65
                ],
                [
                    1968,
                    27.5
                ],
                [
                    1969,
                    26.19
                ],
                [
                    1970,
                    25.95
                ],
                [
                    1971,
                    23.4
                ],
                [
                    1972,
                    22.27
                ],
                [
                    1973,
                    20.99
                ],
                [
                    1974,
                    17.57
                ],
                [
                    1975,
                    15.77
                ],
                [
                    1976,
                    12.72
                ],
                [
                    1977,
                    12.12
                ],
                [
                    1978,
                    12.0
                ],
                [
                    1979,
                    11.61
                ],
                [
                    1980,
                    11.87
                ],
                [
                    1981,
                    14.55
                ],
                [
                    1982,
                    15.68
                ],
                [
                    1983,
                    13.29
                ],
                [
                    1984,
                    13.08
                ],
                [
                    1985,
                    14.26
                ],
                [
                    1986,
                    15.57
                ],
                [
                    1987,
                    16.61
                ],
                [
                    1988,
                    15.73
                ],
                [
                    1989,
                    15.04
                ],
                [
                    1990,
                    14.39
                ],
                [
                    1991,
                    12.98
                ],
                [
                    1992,
                    11.6
                ],
                [
                    1993,
                    11.45
                ],
                [
                    1994,
                    11.21
                ],
                [
                    1995,
                    10.55
                ],
                [
                    1996,
                    10.42
                ],
                [
                    1997,
                    10.06
                ],
                [
                    1998,
                    9.14
                ],
                [
                    1999,
                    8.18
                ],
                [
                    2000,
                    7.58
                ],
                [
                    2001,
                    6.95
                ],
                [
                    2002,
                    6.45
                ],
                [
                    2003,
                    6.01
                ],
                [
                    2004,
                    5.87
                ],
                [
                    2005,
                    5.89
                ],
                [
                    2006,
                    5.28
                ],
                [
                    2007,
                    5.17
                ],
                [
                    2008,
                    5.08
                ],
                [
                    2009,
                    4.87
                ],
                [
                    2010,
                    4.79
                ],
                [
                    2011,
                    4.79
                ],
                [
                    2012,
                    4.95
                ],
                [
                    2013,
                    4.92
                ],
                [
                    2014,
                    5.21
                ],
                [
                    2015,
                    4.96
                ],
                [
                    2016,
                    5.86
                ],
                [
                    2017,
                    5.32
                ],
                [
                    2018,
                    3.81
                ],
                [
                    2019,
                    3.34
                ]
            ],
            "hoverAnimation": true,
            "label": {
                "show": false,
                "position": "top",
                "margin": 8
            },
            "lineStyle": {
                "width": 1,
                "opacity": 1,
                "curveness": 0,
                "type": "solid"
            },
            "areaStyle": {
                "opacity": 0
            },
            "rippleEffect": {
                "show": true,
                "brushType": "stroke",
                "scale": 2.5,
                "period": 4
            }
        }
    ],
    "legend": [
        {
            "data": [
                "\u4eba\u53e3\u51fa\u751f\u7387",
                "\u4eba\u53e3\u6b7b\u4ea1\u7387",
                "\u4eba\u53e3\u81ea\u7136\u589e\u957f\u7387"
            ],
            "selected": {
                "\u4eba\u53e3\u51fa\u751f\u7387": true,
                "\u4eba\u53e3\u6b7b\u4ea1\u7387": true,
                "\u4eba\u53e3\u81ea\u7136\u589e\u957f\u7387": true
            },
            "show": true
        }
    ],
    "tooltip": {
        "show": true,
        "trigger": "item",
        "triggerOn": "mousemove|click",
        "axisPointer": {
            "type": "line"
        },
        "textStyle": {
            "fontSize": 14
        },
        "borderWidth": 0
    },
    "xAxis": [
        {
            "type": "category",
            "show": true,
            "scale": false,
            "nameLocation": "end",
            "nameGap": 15,
            "gridIndex": 0,
            "inverse": false,
            "offset": 0,
            "splitNumber": 5,
            "minInterval": 0,
            "splitLine": {
                "show": false,
                "lineStyle": {
                    "width": 1,
                    "opacity": 1,
                    "curveness": 0,
                    "type": "solid"
                }
            },
            "data": null
        }
    ],
    "yAxis": [
        {
            "show": true,
            "scale": false,
            "nameLocation": "end",
            "nameGap": 15,
            "gridIndex": 0,
            "axisLabel": {
                "show": true,
                "position": "top",
                "margin": 8,
                "formatter": "{value} \u2030"
            },
            "inverse": false,
            "offset": 0,
            "splitNumber": 5,
            "minInterval": 0,
            "splitLine": {
                "show": false,
                "lineStyle": {
                    "width": 1,
                    "opacity": 1,
                    "curveness": 0,
                    "type": "solid"
                }
            }
        }
    ],
    "title": [
        {
            "text": "\u4e2d\u56fd70\u5e74(1949-2019)\u51fa\u751f\u7387\u3001\u6b7b\u4ea1\u7387\u53ca\u589e\u957f\u7387\u53d8\u5316",
            "subtext": "1949-2019\u5e74\uff0c\u5355\u4f4d\uff1a\u2030",
            "left": "center",
            "top": "bottom"
        }
    ]
};
        chart_6cb1439388c044599a731aab8fa0f000.setOption(option_6cb1439388c044599a731aab8fa0f000);
    </script>
<br/>    </div>
    <script>
            $('#6cb1439388c044599a731aab8fa0f000').resizable().draggable().css('border-style', 'dashed').css('border-width', '1px');$("#6cb1439388c044599a731aab8fa0f000>div:nth-child(1)").width("100%").height("100%");
            new ResizeSensor(jQuery('#6cb1439388c044599a731aab8fa0f000'), function() { chart_6cb1439388c044599a731aab8fa0f000.resize()});
            var charts_id = ['6cb1439388c044599a731aab8fa0f000'];
function downloadCfg () {
    const fileName = 'chart_config.json'
    let downLink = document.createElement('a')
    downLink.download = fileName

    let result = []
    for(let i=0; i<charts_id.length; i++) {
        chart = $('#'+charts_id[i])
        result.push({
            cid: charts_id[i],
            width: chart.css("width"),
            height: chart.css("height"),
            top: chart.offset().top + "px",
            left: chart.offset().left + "px"
        })
    }

    let blob = new Blob([JSON.stringify(result)])
    downLink.href = URL.createObjectURL(blob)
    document.body.appendChild(downLink)
    downLink.click()
    document.body.removeChild(downLink)
}
    </script>
</body>
</html>
